package com.ychs.dpmms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * copyright(c)2021 YYB.ALL rights Reserved
 * <p>
 * 描述:通知实体类
 *
 * @author 原玉波
 * @version 1.0
 * @date 2021/9/17
 */
@Data
public class Notice {
    /**
     * id
     */
    private int id;
    /**
     *通知内容
     */
    private String content;
    /**
     *目标用户
     */
    private User toUser;
    /**
     *状态（已读，未读）
     */
    private int state;
    /**
     *发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date sendDate;
}
